﻿using System;
using System.Collections.Generic;
using System.Text;
using Pixysoft.Weblications.Sango.Protocol.player;
using Pixysoft.Framework.Reflection;

namespace Pixysoft.Weblications.Sango.Protocol
{
    class UsrQueueFacade
    {
        internal static List<player_queue> ToQueues(List<Entities.Usr_Queue> orms)
        {
            List<player_queue> list = new List<player_queue>();
            foreach (Entities.Usr_Queue orm in orms)
            {
                list.Add(ToQueue(orm));
            }
            return list;
        }

        internal static player_queue ToQueue(Pixysoft.Weblications.Sango.Entities.Usr_Queue orm)
        {
            player_queue body = ReflectionManager.CreatePojo<player_queue>();
            body.enddate = orm.Queueenddate;
            body.queueserialcode = orm.Queueserialcode;
            body.queuetypecode = orm.Queuetypecode;
            return body;
        }
    }
}
